<?php

defined('SYSPATH') or die('No direct script access.');

class Controller_Index_Contacts extends Controller_Base {

    public function before() {
        parent::before();

        //Віджети
        $menu = $this->widget_load('menu');
        $login = $this->widget_load('login');
        $news = Model::factory('news')->last_news();
        $news = View::factory('index/v_news', array('news' => $news));

        //print_r($news);
        //Вивід в шаблон
        $this->template->block_left = array($menu, $login);
        $this->template->block_right = array($news);
    }

    public function action_index() {     

        
        $block_center = View::factory('index/v_contacts', array());
        $this->template->block_center = array($block_center);
    }

}

